public class Task {

    public static void main(String[] args) {
        if (args.length == 0) {
            args = new String[]{"张三丰", "18", "Java攻城狮", "3"};
        }

        String name = args[0];
        int age = Integer.parseInt(args[1]);
        String jobTitle = args[2];
        int yearsOfExperience = Integer.parseInt(args[3]);

        Employee employee = new Employee(name, age, jobTitle, yearsOfExperience);
        employee.speak();
        employee.work();
    }

}